﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using WinForm = System.Windows.Forms;

namespace Kinect_Dance.Utils
{
    class SoundManager
    {
        
        public ContentManager contentManager;
        private static SoundManager instance = null;

        public static SoundManager getInstance()
        {
            if (instance == null)
            {
                instance = new SoundManager();
            }
            return instance;
        }

        // Variables
        private SoundEffect mChangeMenu;
        private SoundEffect mMenuClick;

        public SoundManager()
        {
           
        }

        public SoundEffect ChangeMenu()
        {
            mChangeMenu = contentManager.Load<SoundEffect>("Sounds/switchMenu");
            return mChangeMenu;
        }

        public SoundEffect MenuClick()
        {
            mMenuClick = contentManager.Load<SoundEffect>("Sounds/SelectMenu");
            return mMenuClick;
        }


        public void playSoundEffect(SoundEffect s)
        {
            s.Play();
        }

        public void playSong(Song s)
        {
            MediaPlayer.Play(s);
        }
    }
}
